function setLang(langID){
	var days = 365;
	var date = new Date();
	date.setTime(date.getTime()+(days*24*60*60*1000));
	var expires = date.toGMTString();
	document.cookie = "ck_lang="+langID+"; expires="+ expires+";";
	window.location.reload()
	}

function Inint_AJAX(){
	try{
		return new ActiveXObject("Msxml2.XMLHTTP");
	}catch(e){
		
	}
	try{
		return new ActiveXObject("Microsoft.XMLHTTP");
	}catch(e){
		
	}
	try{
		return new XMLHttpRequest();
	}catch(e){
		
	}
	alert("XMLHttpRequest not supported");
	return null;
}
function loaddoc(module,title){
	
	var req = Inint_AJAX();
	req.onreadystatechange = function(){
		if(req.readyState == 4){
			if(req.status == 200){
				var data = req.responseText;
				document.getElementById("content").innerHTML = data;
				var aLiTags = documentByTagName("li");
				
				for(i =0;i<aLiTags.length;i++){
					if(aLiTags[i].getAttribute("class")=="menu-sub2"){
						document.getElementById(aLiTags[i].getAttribute("id")).setAttribute("class","menu-sub1");
					}
				}
				document.getElementById(title).setAttribute("class","menu-sub2");
				document.title = title;
			}
		}
	};
	req.open("GET",module,true);
	req.send(null);
}